/* 
 * File:   FractalInverseX.cpp
 * Author: amouro-m
 * 
 * Created on 23 mai 2010, 10:43
 */

#include "FractalInverseX.h"

FractalInverseX::FractalInverseX(SDL_Surface* area):
FractalPrinter(area)
{}

FractalInverseX::FractalInverseX(SDL_Surface* area, Fractal* fractal):
FractalPrinter(area, fractal)
{}

FractalInverseX::~FractalInverseX() {}

unsigned int
FractalInverseX::coordX(double x) const
{
    return (_fractal->_xmax - x) * _coefx_to_area;
}

unsigned int
FractalInverseX::coordY(double y) const
{
    return (y - _fractal->_ymin) * _coefy_to_area;
}
